﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

public class Corridor
{
    public enum CorridorType
    {
        Horizontal,
        Vertical
    }

    public int MinX { get; private set; }
    public int MaxX { get; private set; }
    public int MinY { get; private set; }
    public int MaxY { get; private set; }

    public CorridorType Type { get; private set; }

    public Corridor(CorridorType type, int minCoordinate, int maxCoordinate, int constantCoordinate)
    {
        Type = type;
        switch (type)
        {
            case CorridorType.Horizontal:
                MinY = constantCoordinate;
                MaxY = constantCoordinate;
                MinX = minCoordinate;
                MaxX = maxCoordinate;
                break;
            case CorridorType.Vertical:
                MinX = constantCoordinate;
                MaxX = constantCoordinate;
                MinY = minCoordinate;
                MaxY = maxCoordinate;
                break;
        }
    }
}
